< previous page page_170 next page >

Page 170
Q What is the difference between the If-Then and Select Case statements?
A An If-Then statement enables you to test for different expressions on each occurrence of the If statement. The Select Case statement works with only one expression.
Workshop
The Workshop provides quiz questions to help solidify your understanding of the material covered, as well as exercises to provide you with experience in using what you've learned. Try to understand the quiz and exercise answers before continuing on to the next day's lesson. Answers are provided in Appendix A, Answers to Exercises.
Quiz
1. How many values can a function routine return?
2. What is the difference between a subroutine and a function?
3. Why is using public variables not recommended?
4. How can you leave a subroutine before you come to the End Sub statement?
Exercise..
Write a program that contains global variables, global constants, module-level, and procedure-level variables. Have one command button call the procedure and print all the variables in the application. Then, try having a second command button print all the variables to see what would happen.

 
< previous page page_170 next page >

If you like this book, buy it!